import request from '@/utils/request'

/**
 * 添加机构
 * @param paramsObj
 */
export function addOrg(paramsObj) {
  return request({
    url: '/org/addOrg',
    method: 'post',
    params: paramsObj
  })
}

/**
 * 获取机构列表
 * @param paramsObj
 */
export function getOrgList(paramsObj) {
  return request({
    url: '/org/getOrgList',
    method: 'post',
    params: paramsObj
  })
}

/**
 * 删除机构
 * @param paramsObj
 */
export function delOrg(paramsObj) {
  return request({
    url: '/org/delOrg',
    method: 'post',
    params: paramsObj
  })
}

/**
 * 获取机构详情
 * @param paramsObj
 */
export function getOrgById(paramsObj) {
  return request({
    url: '/org/getOrgById',
    method: 'post',
    params: paramsObj
  })
}

/**
 * 更新机构
 * @param paramsObj
 */
export function updateOrg(paramsObj) {
  return request({
    url: '/org/updateOrg',
    method: 'post',
    params: paramsObj
  })
}

/**
 * 获取机构树
 * @param paramsObj
 */
export function getOrgTree(paramsObj) {
  return request({
    url: '/org/getOrgTree',
    method: 'post',
    params: paramsObj
  })
}


